class yonghurihuizongbaobiaobean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  yonghurihuizongbaobiaobean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  yonghurihuizongbaobiaobean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String ymOfDate;
  double subtotal;
  double monthAdjustmentAmount;
  double monthSellHotAmount;
  List<DayReportVos> dayReportVos;

  Result(
      {this.ymOfDate,
        this.subtotal,
        this.monthAdjustmentAmount,
        this.monthSellHotAmount,
        this.dayReportVos});

  Result.fromJson(Map<String, dynamic> json) {
    ymOfDate = json['ymOfDate'];
    subtotal = json['subtotal'];
    monthAdjustmentAmount = json['monthAdjustmentAmount'];
    monthSellHotAmount = json['monthSellHotAmount'];
    if (json['dayReportVos'] != null) {
      dayReportVos = new List<DayReportVos>();
      json['dayReportVos'].forEach((v) {
        dayReportVos.add(new DayReportVos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ymOfDate'] = this.ymOfDate;
    data['subtotal'] = this.subtotal;
    data['monthAdjustmentAmount'] = this.monthAdjustmentAmount;
    data['monthSellHotAmount'] = this.monthSellHotAmount;
    if (this.dayReportVos != null) {
      data['dayReportVos'] = this.dayReportVos.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class DayReportVos {
  String dayOfDate;
  double dailyAmount;
  double correctionAmount;
  double settlementAmount;

  DayReportVos(
      {this.dayOfDate,
        this.dailyAmount,
        this.correctionAmount,
        this.settlementAmount});

  DayReportVos.fromJson(Map<String, dynamic> json) {
    dayOfDate = json['dayOfDate'];
    dailyAmount = json['dailyAmount'];
    correctionAmount = json['correctionAmount'];
    settlementAmount = json['settlementAmount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayOfDate'] = this.dayOfDate;
    data['dailyAmount'] = this.dailyAmount;
    data['correctionAmount'] = this.correctionAmount;
    data['settlementAmount'] = this.settlementAmount;
    return data;
  }
}
